package com.wuage.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * (UacRole)表实体类
 *
 * @Author: makejava
 * @Date: 2021-09-27 17:00:43
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName(value = "uac_role", autoResultMap = true)
public class UacRole {

    /**
     * 主键id
     **/
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 角色名字
     **/
    @TableField("role_name")
    private String roleName;

    /**
     * 角色编码
     **/
    @TableField("role_code")
    private String roleCode;

    /**
     * 描述
     **/
    @TableField("description")
    private String description;

    /**
     * 是否禁用
     **/
    @TableField("enable")
    private Boolean enable;

    /**
     * 创建时间
     **/
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     **/
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     **/
    @TableField("deleted")
    private Boolean deleted;

    /**
     * 租户id
     **/
    @TableField("tenant_id")
    private Long tenantId;

    /**
     * 租户名字
     **/
    @TableField("tenant_name")
    private String tenantName;

}